package com.lvmama.pangolin.mt.service;

import com.lvmama.pangolin.entity.InputCommodityVO;
import com.lvmama.pangolin.entity.mt.MTTicketCommodityItem;
import com.lvmama.pangolin.entity.mt.MTTicket_CommodityDetail;

import java.util.List;
import java.util.Map;

public interface MTTicketCommodityItemsService {
	/**
	* @Title：TCTicketCommodityDetailService.java
	* @Author:zhoutianqi
	* @Description:
	* @Date：2017年2月17日上午11:16:48
	*/
	public int insert(MTTicket_CommodityDetail item)throws Exception;
	public void insertSelective(MTTicketCommodityItem item);
	public MTTicketCommodityItem selectById(String id, String productId)throws Exception;
	public int update(MTTicket_CommodityDetail item)throws Exception;
	public int updateByProdCommIdAndType(MTTicket_CommodityDetail item)throws Exception;
	public void updateSelective(MTTicketCommodityItem item);
	public List<MTTicketCommodityItem> selectByProdId(String product_id);
	public MTTicketCommodityItem selectByProdCommId(String productId, String commodityId);
	public List<MTTicketCommodityItem> selectByProdComName(String productId, String commodityName);
	public void updateByProdCommId(String productId, String commodityId);
	public void deleteLinkByProdCommId(String productId, String commodityId);
	public void deleteById(String id);
	public List<MTTicketCommodityItem> selectByProdidAndIsLinked(Map<String, String> map);
	public List<MTTicketCommodityItem> selectByCommVO(InputCommodityVO co);
	public List<MTTicketCommodityItem> getActiveCommodity(String productId);
}
